package com.itheima.domain;

import org.apache.ibatis.session.ResultContext;
import org.apache.ibatis.session.ResultHandler;

public class Product implements ResultHandler {
    private Integer id;
    private String name;
    private Double price;
    private String  insertTime;
    private String category;
    private Integer status =1;

    public Product() {
    }

    public Product(String name, Double price, String insertTime, String category) {
        this.name = name;
        this.price = price;
        this.insertTime = insertTime;
        this.category = category;
    }

    public Product(Integer id, String name, Double price, String insertTime, String category) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.insertTime = insertTime;
        this.category = category;
    }


    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price='" + price + '\'' +
                ", insertTime=" + insertTime +
                ", category='" + category + '\'' +
                '}';
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(String insertTime) {
        this.insertTime = insertTime;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    @Override
    public void handleResult(ResultContext resultContext) {

    }
}
